package com.example.wowangz.dubbo.consumer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.example.wowangz.dubbo.api.DubboService;

public class DubboConsumer {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx =
                new ClassPathXmlApplicationContext(
                        new String[] {"classpath:dubbo/dubbo-consumer.xml"});
        DubboService dubboService = (DubboService) ctx.getBean("dubboService");
        System.out.println(dubboService.testDubbo("world"));

        ctx.close();
    }

}
